namespace Vec
{
	public class Rect
	{
		public int left;
		public int top;
		public int right;
		public int bottom;

		public Rect(int left, int top, int right, int bottom)
		{
			set(left, top, right, bottom);
		}

		public void set(int l, int t, int r, int b)
		{
			this.left = l;
			this.right = r;
			this.top = t;
			this.bottom = b;
		}

		public Rect(Rect p)
		{
			set(p);
		}

		public void set(Rect p)
		{
			this.left = p.left;
			this.right = p.right;
			this.top = p.top;
			this.bottom = p.bottom;
		}

		public int width()
		{
			return right - left;
		}

		public int height()
		{
			return bottom - top;
		}
	}
}